package ac.il.technion.cs236635.project.test;

import java.util.Properties;

import org.junit.Test;

public class ReadProperty {

	@Test
	public void readPolicyParameter( ) {
		Properties properties = new Properties( );
		try {
			properties.load( ReadProperty.class.getClassLoader( ).getResourceAsStream( "server.properties"));
			String policy = properties.getProperty( "policy");
			junit.framework.Assert.assertEquals( policy, "ACCEPT_ALL");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}